#ifndef GROUPSESSIONDETAILWIDGET_H
#define GROUPSESSIONDETAILWIDGET_H

#include <QDialog>
#include <QWidget>

class QLabel;
class QVBoxLayout;
class QGridLayout;

namespace widgetkit {
    class AvatarItem;
}

using widgetkit::AvatarItem;

class GroupSessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    GroupSessionDetailWidget(QWidget* parent);

    void addMember(AvatarItem* avatarItem);

private:
    void groupNameLayout(QVBoxLayout* mainLayout);

    void initData();

    void initSessionMembers(const QString& chatSessionId);

private:
    QGridLayout* containerLayout;   // 群聊成员布局器

    QLabel* groupNameVal;

    // 当前成员处于布局器的位置/计数辅助换行
    int curRow;
    int curCol;
};

#endif // GROUPSESSIONDETAILWIDGET_H
